package com.mybatisplus.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mybatisplus.dao.StudentMapper;
import com.mybatisplus.pojo.Student;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class StudentServiceImpl extends ServiceImpl<StudentMapper, Student> implements StudentService {
    @Autowired
    private StudentMapper studentMapper;

    @Override
    public List<Student> getStudentList(Student student) {
        return studentMapper.getStudentList(student);
    }

    @Override
    public void addStudent(Student student) {
        studentMapper.addStudent(student);
    }
}
